import { http, yxglIp} from '../../Api/http'

/**
 * @description: 生产计划
 * @author: xiaoxujs
 */
//计划列表
export const postSofPdPlanActFindRelease= (data) => {
    const url = yxglIp + '/sof-pdPlan-act/find/release'
    return http(url, 'post', data)
}
//计划列表
export const getSofPdPlanActFindCp= (data) => {
    const url = yxglIp + '/sof-pdPlan-act/find/cp'
    return http(url, 'get', data)
}
//填报生产计划
export const putSofPdPlanActInsertPlan= (data) => {
    const url = yxglIp + '/sof-pdPlan-act/insert/plan'
    return http(url, 'put', data)
}
//下发计划
export const postSofPdPlanActTaskChain= (data) => {
    const url = yxglIp + '/sof-pdPlan-act/task/chain'
    return http(url, 'post', data)
}
//下发计划
export const getSofPdPlanActIssue= (data) => {
    const url = yxglIp + '/sof-pdPlan-act/issue'
    return http(url, 'get', data)
}
//待办任务列表 - 我的任务/部门任务
export const postSofPdPlanActFindTodo= (data) => {
    const url = yxglIp + '/sof-pdPlan-act/find/todo'
    return http(url, 'post', data)
}
//待办任务列表 - 分配拾取
export const postSofPdPlanActDistribution= (data) => {
    const url = yxglIp + '/sof-pdPlan-act/distribution'
    return http(url, 'post', data)
}
//待办任务列表 - 归还任务
export const getSofPdPlanActGiveUp= (data) => {
    const url = yxglIp + '/sof-pdPlan-act/giveUp'
    return http(url, 'get', data)
}
//待办任务列表 - 归还任务
export const getSofPdPlanActDelivery= (data) => {
    const url = yxglIp + '/sof-pdPlan-act/delivery'
    return http(url, 'get', data)
}
//待办任务列表 - 归还任务
export const getSofPdplanFindDetail= (data) => {
    const url = yxglIp + '/sof-pdplan/find/detail'
    return http(url, 'get', data)
}
//历史任务列表
export const postSofPdPlanActFindHisPlan= (data) => {
    const url = yxglIp + '/sof-pdPlan-act/find/hisPlan'
    return http(url, 'post', data)
}
// 执行流程控制器
export const postSofActRuleFindFlow= (data) => {
    const url = yxglIp + '/sof-act-rule/find/flow'
    return http(url, 'post', data)
}
// 执行流程控制器--及联列表
export const getSofActRuleFindCas= (data) => {
    const url = yxglIp + '/sof-act-rule/find/cas'
    return http(url, 'get', data)
}
// 执行流程控制器--添加执行流程
export const putSofActRuleInsertFlow= (data) => {
    const url = yxglIp + '/sof-act-rule/insert/flow'
    return http(url, 'put', data)
}
// 执行流程控制器--编辑回显
export const getSofActRuleUpdateEcho= (data) => {
    const url = yxglIp + '/sof-act-rule/update/echo'
    return http(url, 'get', data)
}
// 执行流程控制器--编辑流程
export const postSofActRuleUpdateFlow= (data) => {
    const url = yxglIp + '/sof-act-rule/update/flow'
    return http(url, 'post', data)
}
// 执行流程控制器--编辑流程
export const getSofActRuleDeleteFlow= (data) => {
    const url = yxglIp + '/sof-act-rule/delete/flow'
    return http(url, 'get', data)
}
